
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试</title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }
    .bear{
        bottom: 0;
        position: absolute;
        width: 200px;
        height: 100px;
        background: url(/static/img/bear.png) no-repeat;
        animation: bear .7s steps(8) infinite,bearMove 3s linear forwards
    }
    .mount{
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 250px;
        animation: move 25s infinite linear;
        background: url(/static/img/mount.png);
    }
    .mount2{
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 400px;
        animation: move 25s infinite linear;
        background: url(/static/img/mount2.png);
    }
    @keyframes bear{
        0%{
            background-position: 0 0;
        }
        100%{
            background-position: -1600px 0;
        }
    }

    @keyframes bearMove{
        0%{
            left: 0;
        }
        100%{
            left: 50%;
            transform: translateX(-50%);
        }
    }

    @keyframes move{
        0%{
            background-position: 0 0;
        }
        100%{
            background-position: -3000px 0;
        }
    }
</style>
<body>
   
    
    <div class="mount2">
        <div class="mount"> 
            <div class="bear"></div>
        </div>
    </div>





</body>
</html>